package com.srs.backend.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Food {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String name;
    private Integer foodStyleId;
    private Double price;
    private String remark;
    private transient Double foodReviewStar;
    private transient String foodStyleName;
    private transient Integer num;

    public Food(Integer id, String name, Integer foodStyleId, Double price, String remark) {
        this.id = id;
        this.name = name;
        this.foodStyleId = foodStyleId;
        this.price = price;
        this.remark = remark;
    }
}
